package cn.zf.spring5;

/**
 * 使用有参构造注入
 */
public class Orders {
    private String oname;
    private String adress;

    public Orders(String oname, String adress) {
        this.oname = oname;
        this.adress = adress;
    }

    public void testPrint() {

        System.out.println("Orders{" +
                "oname='" + oname + '\'' +
                ", adress='" + adress + '\'' +
                '}');
    }
}
